package com.kanq.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.kanq.pojo.entity.KanqAiFile;
import com.kanq.pojo.entity.KanqAiFileChunk;

import java.util.List;

public interface KanqAiFileMapper extends BaseMapper<KanqAiFile> {
    KanqAiFile getFileWithKeywordsById(Long fileId);

    List<KanqAiFileChunk> getFileByTypeId(Long type);

    List<Long> getFileIdsByChunkIds(List<Long> chunkIds);

    List<KanqAiFile> getFileBasicInfo(List<Long> fileIds);

    List<KanqAiFileChunk> getFileChunksByFileIdsAndChunkIds(List<Long> fileIds, List<Long> chunkIds);

    IPage<KanqAiFile> selectAllPage(Page<KanqAiFile> objectPage);
}
